<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // var sum = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10;
      // console.log(sum);

      // var sum = 0;
      // var a = 1;
      // sum = sum + a; //0+1
      // a++; //2
      // sum = sum + a; //1+2
      // a++; //3
      // sum = sum + a; //1+2+3
      // var sum = 0;
      var list = [12, 321, 412, 213];
      for (var i = 0; i < list.length; i++) {
        console.log(list[i]);
      }
      // console.log(sum);
    </script>
  </body>
</html>
